package com.wanxi.dao;

import com.wanxi.model.News;
import com.wanxi.model.NewsType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface NewsDao {
    List<News> findAllNews();

    News findNewsById(News news);

    int updateEnable(News news);

    int addNews(News news);

    int deleteNews(News news);

    int updateNews(News news);

    List<News> findNews(News news);

    List<News> findNewsBySome(News news);

    int updateNewsByTypeID(NewsType newsType);
}
